package service

import (
	"car-thirdparty-api/internal/model"
	"context"
)

type IPassInfoV1 interface {
	BookingAccess(ctx context.Context, req *model.BookingAccessReq) (res *model.BookingAccessRes, err error)
	BookingAdd(ctx context.Context, req *model.BookingAddReq) (res *model.BookingAddRes, err error)
}

var localPassInfoV1 IPassInfoV1

func PassInfoV1() IPassInfoV1 {
	if localPassInfoV1 == nil {
		panic("implement not found for interface IPassInfoV1, forgot register?")
	}
	return localPassInfoV1
}

func RegisterPassInfoV1(i IPassInfoV1) {
	localPassInfoV1 = i
}
